.sq-switch {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 18px;
  line-height: 20px;
  height: 20px;
  vertical-align: middle;

  .sq-switch__input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0;
  }

  .icon {
    position: absolute;

  }

  .sq-switch__core {
    margin: 0;
    display: inline-block;
    position: relative;
    width: 40px;
    height: 20px;
    border: 1px solid #dcdfe6;
    outline: none;
    border-radius: 10px;
    box-sizing: border-box;
    background: #dcdfe6;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    vertical-align: middle;
  }

  .sq-switch__core:after {
    content: "";
    position: absolute;
    top: 0.5px;
    left: 1px;
    border-radius: 100%;
    transition: all 0.3s;
    width: 16px;
    height: 16px;
    background-color: #fff;
  }

  &.is-checked .sq-switch__core::after {
    left: 100%;
    margin-left: -17px;
  }

  &.is-disabled .sq-switch__core {
    cursor: not-allowed;
  }
}

.sq-switch__core_big {
  .sq-switch__core {
    width: 60px;
    height: 30px;
  }

  &.is-checked .sq-switch__core::after {
    margin-left: -24px;
  }

  .sq-switch__core:after {
    width: 25px;
    height: 25px;
    top: 2.5px;
  }
}